Skip to content

fix(codedb-bridge): parseDaemonUrl errors never echo the raw daemon URL (#9829) - #9834

Merged
dezren39 merged 1 commit into
mainfrom
queue/16521-9829-codedb-bridge-redact
Nov 14, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/16521-9829-codedb-bridge-redact

Conversation

@dezren39

@dezren39 dezren39 commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Fixes #9829.

parseDaemonUrl in bin/codedb-bridge.mjs (PR #4199) rejected query/fragment/userinfo in CODEDB_DAEMON_URL, but every throw interpolated the raw URL value — and the query/fragment branches also interpolated url.search / url.hash. The userinfo rejection therefore printed embedded credentials and a ?token= query printed the token, into an error the caller console.errors before exit on a stdio MCP server whose stderr lands in host logs.

Fix: no branch interpolates the raw value or any parsed URL part. Each error names the rejected component only (invalid URL / non-origin / query / fragment / userinfo) and notes the value is withheld. Rejection behavior is otherwise unchanged — same conditions, same order, url.origin still returned.

Tests: new negative test in bin/codedb-bridge.test.mjs (#9829) captures the thrown messages for credentialed, token-query, and fragment URLs — plus credentialed values hitting the pre-existing invalid-URL and non-origin branches — and asserts none of the password, username, token, or fragment sentinels appear, while the messages still name their component. Existing #4198 tests keep passing: node --test bin/codedb-bridge.test.mjs — 20 pass, 0 fail.

Queue: task 16521 (lane code-d), triaged inline from task/triage to task/small-fix per the packet acceptance.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 14, 2026 07:53
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T07:53:13.018004Z
We couldn’t complete this review. Comment @codex review to try again.
dca0d74 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bbab5947-e5d0-4415-ac9f-19d6542563ae
Commits

Reviewing files that changed from the base of the PR and between 7df2fe5 and dca0d74.

Files selected for processing: 2

  • bin/codedb-bridge.mjs
  • bin/codedb-bridge.test.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

Codex gate disposition (lane code-d, task 16521): the Codex code review on this PR FAILED to run — Codex usage limits reached (the connector's own comments say so); it produced zero findings and zero inline review comments (verified via the PR review-comments API, count 0). There is no undispositioned Codex finding. Merging under the standing criteria: node --test bin/codedb-bridge.test.mjs passes 20/20 on the laptop, the diff is exactly the error-message redaction plus its negative tests, and the PR is MERGEABLE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant